package org.learnredis.student;

public class AvgExamScoreComparator implements StudentComparator {

    @Override
    public int compare(Student s1, Student s2) {
        Float s1Score = s1.getAvgExamScore();
        Float s2Score = s2.getAvgExamScore();
        return s2Score.compareTo(s1Score);
    }
}
